package csdj;

import com.lww.springcloudapi.pojo.TabHallSetmeal;
import com.lww.springcloudapi.pojo.TabHallUserbill;
import com.lww.springcloudapi.pojo.TabHallUserpackage;
import csdj.mapper.TabHallSetmealMapper;
import csdj.mapper.TabHallUserbillMapper;
import csdj.mapper.TabHallUserpackageMapper;
import csdj.service.TabHallSetmealService;
import csdj.service.TabHallUserbillService;
import csdj.service.TabHallUserpackageService;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Date;

/**
 * 测试 dao service 的测试类
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class Test {

    @Autowired
    TabHallUserbillService service;

    @org.junit.Test
    public void text(){
        System.out.println("junit");
        TabHallUserbill userbill = new TabHallUserbill();
        userbill.setPnumber("12345678910");
        userbill.setId(0);
        userbill.setDeduction(-19.0);
        userbill.setOperation("套餐扣费");
        userbill.setOperationtime(new Date());
        service.insertUserBill(userbill);


    }
}
